package com.neusoft.userserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.neusoft.userserver.entity.Role;
import com.neusoft.userserver.mapper.RoleMapper;
import com.neusoft.userserver.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author liuxp
 * @since 2021-07-08
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {
    @Autowired
    RoleMapper roleMapper;

    @Override
    public List<Role> getRolesByName(String username) {
        return roleMapper.getRolesByName(username);
    }

}
